package com.biz.primus.ms.commodity.dao.repository.product;

import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.commodity.dao.po.DepotProduct;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by jiangnan on 2017/6/23.
 */
public interface DepotProductRepository extends CommonJpaRepository<DepotProduct, Long>,JpaSpecificationExecutor<DepotProduct>,DepotProductDao {

    DepotProduct findByDepotIdAndProductId(Long depotId, Long productId);


    List<DepotProduct> findByProductIdAndProvinceId(Long productId, Integer provinceId);
}
